package com.patzn.osgi.blueprint.service;

import com.patzn.osgi.blueprint.api.IEmailService;

/**
 * @name: EmailServiceImpl
 * @description: EmailServiceImpl
 * @author: jiangcs
 */
public class EmailServiceImpl implements IEmailService {

    private String vendor;

    public EmailServiceImpl(String vendor) {
        this.vendor = vendor;
    }

    @Override
    public void send(String mailTo, String content) {
        System.out.println(vendor + " send email to [" + mailTo + "] => " + content);
    }
}
